<!DOCTYPE html>
<head lang="en">
    <meta charset="UTF-8">
    <title>会员消费统计</title>
    <link rel="stylesheet" href="../css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="../lib/toast/angular-toastr.min.css"/>
    <link rel="stylesheet" href="../lib/angular/loadingBar/lbar.black.css"/>

</head>
<body style="padding: 10px;" ng-app="myApp" ng-controller="sumCostCtrl">
<header ng-include="'../html/part/header.html'" class="abs-header"></header>
<br><br><br>

<h2>营业情况</h2>
<hr>

<div class="bottom-right">
    <button type="button" ng-click="getDayCostLog(qiantian)" class="btn btn-info">
        {{qiantian}}</button>

    <button type="button" ng-click="getDayCostLog(zuotian)" class="btn btn-info">
        {{zuotian}}</button>

    <button type="button" ng-click="getDayCostLog(jintian)" class="btn btn-info">
        {{jintian}}</button>
</div>
<br><br>
<div>
    搜索：<input type="text" ng-model="titleFilter" placeholder="输入关键字">
</div>
<br>

<table class="imagetable" width="100%">
<tr ng-hide="costList.length==0">
<th>会员号</th><th>会员名</th><th>消费金额</th><th>日期</th>
</tr>
<tr ng-repeat="cost in costList|filter:titleFilter">
<td>{{cost.customerNum}}</td>
<td>{{cost.customerName}}</td>
<td>{{cost.cost | currency:"￥"}}</td>
<td>{{cost.costDate| date:'yyyy-MM-dd HH:mm:ss'}}</td>
</tr>
</table>

<br><br><br>
<footer ng-include="'../html/part/footer.html'"></footer>
</body>
<script type="text/javascript" src="../lib/angular/angular.min.js"></script>
<script type="text/javascript" src="../lib/angular/angular-cookies.js"></script>
<script type="text/javascript" src="../lib/angular/angular-ui-router.min.js"></script>
<script type="text/javascript" src="../js/controller/services/model.js"></script>
<script type="text/javascript" src="../js/controller/sumCost.ctrl.js"></script>
</html>